package com.tenbent.product.center.insures.dto.search;

import com.tenbent.product.base.dto.search.BaseSearchPageDto;
import com.tenbent.product.base.query.page.Pageable;
import com.tenbent.product.center.insures.bo.SafeguardPackageDetail;

/**
 * 保障套餐保额查询DTO
 *
 * Created by ThinkPad on 2017/8/29.
 */
public class SafeguardPackageDetailSearchPageDto extends BaseSearchPageDto {

	/** 套餐代码 */
	private String packageCode;

	/** 保障项目代码 */
	private String categoryCode;

	/** 保障额度 */
	private String amount;

	@Override
	public Pageable transToPageable() {

		SafeguardPackageDetail safeguardPackageDetail = new SafeguardPackageDetail();
		safeguardPackageDetail.setPackageCode(this.getPackageCode());
		safeguardPackageDetail.setCategoryCode(this.getCategoryCode());
		safeguardPackageDetail.setAmount(this.getAmount());
		Pageable pageable = new Pageable(this.getPageNum(), this.getPageSize());
		pageable.setParamBizObject(safeguardPackageDetail);
		return pageable;
	}

	public String getPackageCode() {
		return packageCode;
	}

	public void setPackageCode(String packageCode) {
		this.packageCode = packageCode;
	}

	public String getCategoryCode() {
		return categoryCode;
	}

	public void setCategoryCode(String categoryCode) {
		this.categoryCode = categoryCode;
	}

	public String getAmount() {
		return amount;
	}

	public void setAmount(String amount) {
		this.amount = amount;
	}
}
